package com.hu.zhcc.shiro.service.xsx;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hu.zhcc.shiro.dao.xsx.TMubanMapper;
import com.hu.zhcc.shiro.entity.xsx.XsxTMuban;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xsx
 * @since 2021-06-22
 */
@Service
public class TMubanServiceImpl extends ServiceImpl<TMubanMapper, XsxTMuban> implements TMubanService {

    @Autowired
    TMubanMapper tMubanMapper;


    @Override
    public List<XsxTMuban> queryAllMuban() {
        return tMubanMapper.queryAllMuban();
    }

    @Override
    public int addMuban(XsxTMuban tMuban) {
        return tMubanMapper.addMuban(tMuban);
    }

    @Override
    public int updStatue(XsxTMuban tMuban) {
        return tMubanMapper.updStatue(tMuban);
    }

    @Override
    public List<XsxTMuban> queryQyMuban() {
        return tMubanMapper.queryQyMuban();
    }

    @Override
    public XsxTMuban queryById(int id) {
        return tMubanMapper.queryById(id);
    }

    @Override
    public int updateMuban(XsxTMuban tMuban) {
        return tMubanMapper.updStatue(tMuban);
    }
}
